package personal.domain.accounting;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;


@Entity
@Table (name="weekly_balance")
@NamedQueries({
	@NamedQuery(name=WeeklyBalance.WEEKLY_BAL_DEL_MULTIPLE_NAMED_QUERY, query="delete WeeklyBalance where description in (:descriptions)"),
	@NamedQuery(name=WeeklyBalance.WEEKLY_BAL_GET_ALL_NAMED_QUERY, query="select wbal from WeeklyBalance wbal order by lower(wbal.description) asc")
})
public class WeeklyBalance implements Serializable {
	private static final long serialVersionUID = 1L;
	public static final String WEEKLY_BAL_DEL_MULTIPLE_NAMED_QUERY = "WeeklyBalance.deleteMultiple";
	public static final String WEEKLY_BAL_GET_ALL_NAMED_QUERY = "WeeklyBalance.getAll";
	private String description;
	private BigDecimal amount;

	@Id
	@Column (name="description", length=100, nullable=false, insertable=true, updatable=true)
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	@Column (name="amount", nullable=true, insertable=true, updatable=true)
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
}
